package com.decorator;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class TestMain {
	public static Logger logger = LoggerFactory.getLogger(TestMain.class);
	public static void main(String[] args) {
		Person p = new Person("小菜");
		
		logger.info("第一种装扮=================");
		Sneakers sneaker = new Sneakers();
		BigTrouser bigTrouser = new BigTrouser();
		TShirts tshirts = new TShirts();
		
		sneaker.Decorate(p);
		bigTrouser.Decorate(sneaker);
		tshirts.Decorate(bigTrouser);
		tshirts.show();
		
		
		logger.info("第二种装扮===================");
		
		LeatherShoes leatherShoes = new LeatherShoes();
		Tie tie = new Tie();
		Suit suit = new Suit();
		
		leatherShoes.Decorate(p);
		tie.Decorate(leatherShoes);
		suit.Decorate(tie);
		suit.show();
		
	}
	
}
